package com.fearless.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.fearless.dao.impl.BannerDaoImpl;
import com.fearless.util.BaseServlet;

/**
 * Servlet implementation class BannerServlet
 */
public class BannerServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;
       
	BannerDaoImpl bDaoImpl = new BannerDaoImpl();//测试
	
	public void bannerAll(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
		request.setAttribute("bList", bDaoImpl.bannerAll());
		request.getRequestDispatcher("index.jsp").forward(request, response);
	}

}
